package com.lcd.ssm.mapper;

import com.lcd.ssm.domain.Role;
import com.lcd.ssm.query.RoleQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    int deleteByPrimaryKey(Long id);
    int insert(Role record);
    Role selectByPrimaryKey(Long id);
    List<Role> selectAll();
    int updateByPrimaryKey(Role record);

    int insertRelationWithPermission(@Param(value = "rid") Long rid,@Param(value = "pid") Long pid);

    Long queryForPageCount(RoleQueryObject qo);

    List<Role> queryForPage(RoleQueryObject qo);

    int deleteRelationPermission(Role record);
}